package cn.ldf.keepaccounts.entity.pojo;

import java.util.Date;

import cn.ldf.keepaccounts.enums.RoomsStatusEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 房间表(Rooms)表实体类
 *
 * @author 清峰
 * @since 2025-02-17 10:15:14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Rooms extends BaseEntity {

    //房间号
    private String roomId;
    //房主openId
    @NotBlank(message = "房主openId不能为空")
    private String ownerOpenId;
    //房主昵称
    @NotBlank(message = "房主昵称不能为空")
    private String ownerName;
    //房间状态:进行中|已结算|已解散
    private RoomsStatusEnum status;
    //结算时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date settleTime;

}

